home *** CD-ROM | disk | FTP | other *** search
/ Collection of Internet / Collection of Internet.iso / msdos / lynx / source / doslynx / src / tdosly10.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  1994-10-25  |  1.7 KB  |  47 lines

  1. //    Copyright (c) 1993, University of Kansas, All Rights Reserved
  2. //
  3. //    Class:        TDosLynx : public TApplication
  4. //    Include File:    TDosLynx.h
  5. //    Purpose:    Implement our application object.
  6. //    Remarks/Portability/Dependencies/Restrictions:
  7. //    Revision History:
  8. //        12-09-93    created
  9. //        02-09-04    Split all members to seperate files to enhance
  10. //                overlay support.
  11. #define Uses_TStatusLine
  12. #define Uses_TStatusItem
  13. #define Uses_TStatusDef
  14. #define Uses_TKeys
  15. #include"tdoslynx.h"
  16. #include"globals.h"
  17.  
  18. TStatusLine *TDosLynx::initStatusLine(TRect TR_r)    {
  19. //    Purpose:    Initialize the status line.
  20. //    Arguments:    TR_r    Dimensions of the status line.
  21. //    Return Value:    TStatusLine *    the new status line.
  22. //    Remarks/Portability/Dependencies/Restrictions:
  23. //    Revision History:
  24. //        12-10-93    created
  25.  
  26.     //    Move top to one line above the bottom
  27.     TR_r.a.y = TR_r.b.y - 1;
  28.     //    Create the status line and it's items, then return it.
  29.     return(new TStatusLine(TR_r, *new TStatusDef(0, 0xFFFF) +
  30.         *new TStatusItem(NULL, kbAltX, cmQuit) +
  31.         *new TStatusItem(NULL, kbF3, cmOpenURL) +
  32.         *new TStatusItem(NULL, kbAltF3, cmClose) +
  33.         *new TStatusItem(NULL, kbF5, cmZoom) +
  34.         *new TStatusItem(NULL, kbF10, cmMenu) +
  35.         *new TStatusItem(NULL, kbAltF5, cmResize) +
  36.         *new TStatusItem("~Prior~", kbNoKey, cmPreviousDocument) +
  37.         *new TStatusItem("~Activate~", kbNoKey, cmSelectAnchor) +
  38.         *new TStatusItem("~Next~", kbNoKey, cmNextAnchor) +
  39.         *new TStatusItem("~Previous~", kbNoKey, cmPreviousAnchor) +
  40.         *new TStatusItem(NULL, kbF1, cmHotList) +
  41.         *new TStatusItem(NULL, kbF4, cmSearchAgainDLX) +
  42.         *new TStatusItem(NULL, kbF2, cmSaveDLX) +
  43.         *new TStatusItem("~Search~", kbF7, cmSearchIndex) +
  44.         *new TStatusItem(NULL, kbF9, cmHomePage)
  45.         ));
  46. }
  47.